package com.anbang.website.service;

import java.util.Map;

import com.google.common.collect.Maps;

import net.sf.json.JSONObject;

/**
 * @author fediy
 *
 * 信息发布助手helper
 */
public class CmsHelper {
    /**
     * 
     * @param cmsCategory a 、要闻回顾  ，   1、公告  ，其他值：该类别
     * @param loginType  1  没有登录客户所见  3 登录后客户所见
     * @param pageNo
     * @param pageSize
     * @return
     */
	public static JSONObject cmsList(String cmsCategory,String loginType, int pageNo, int pageSize){
		Map<String, Object> map = Maps.newHashMap();
		map.put("cmsCategory", cmsCategory);
		map.put("loginType", loginType);
		map.put("pageNo", pageNo);
		map.put("pageSize", pageSize);
		return ServiceHelper.post(ServiceDefine.SVR_CMSLIST, map);
	}
	
	public static JSONObject cmsDetail(Long id){
		Map<String, Object> map = Maps.newHashMap();
		map.put("id", id);
		return ServiceHelper.post(ServiceDefine.SVR_CMCDETAIL, map);
	}
}
